package com.fankui.serviceorder.client;

import com.fankui.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName CourseClient
 * Description TODO
 * Date 2023/12/12 4:28
 *
 * @Author 范奎
 * @Since JDK 11
 */
@Component
@FeignClient(name = "service-edu", fallback = CourseClientImpl.class)
public interface CourseClient {
    @GetMapping("/eduservice/coursefront/getCourseDetails/{courseId}")
    R getCourseDetails(@PathVariable("courseId") String courseId);
}
